import request from "@/utils/request";

// 获取订单列表
export function getAppOrderList(query) {
  return request({
    url: "/app/getAppOrderList",
    method: "get",
    params: query
  });
}

// 查看某个订单
export function getAppOrderInfo(query) {
  return request({
    url: "/app/getAppOrderInfo",
    method: "get",
    params: query
  });
}

// 新增一个订单
export function addAppOrder(data) {
  return request({
    url: "/app/addAppOrder",
    method: "post",
    data,
  });
}

// 修改订单
export function updateAppOrder(data) {
  return request({
    url: "/app/updateAppOrder",
    method: "post",
    data,
  });
}

// 删除订单
export function deleteAppOrder(data) {
  return request({
    url: "/app/deleteAppOrder",
    method: "post",
    data,
  });
}
